﻿@model BabyShop.WebSite.ViewModels.WebSiteLocationViewModel

<div class="w">
    <div class="crumb">
        @Html.ActionLink("首页", "Index", "Home")
        @if (Model != null && Model.ProductTypes != null && Model.ProductTypes.Count > 0) {
            int i = 1;
            foreach (var productType in Model.ProductTypes) {
                @MvcHtmlString.Create("&nbsp;&gt;&nbsp;")
                <a href="@Url.Action(productType)" title="@productType.ProductTypeName">
                    @productType.ProductTypeName
                </a>
            }                                                           
        }
        @if (Model != null && Model.Product != null) {
            @MvcHtmlString.Create("&nbsp;&gt;&nbsp;")
            @Html.ActionLink(Model.Product.ProductName, "ProductDetail", "Product", new { keyGuid = Model.Product.ProductGuid }, null)
        }
    </div>
</div>